package com.youngking.guns.modular.system.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 微信用户信息表
 * </p>
 *
 * @author lifei123
 * @since 2018-08-03
 */
@TableName("tb_wxuserinfo")
public class Wxuserinfo extends Model<Wxuserinfo> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 普通用户的标识
     */
    private String openid;
    /**
     * 是否订阅
     */
    private Integer subscribe;
    /**
     * 昵称
     */
    private String nickname;
    /**
     * 性别(1:男；2:女)
     */
    private Integer sex;
    /**
     * 所用语言
     */
    private String language;
    /**
     * 所在城市
     */
    private String city;
    /**
     * 所在省份
     */
    private String province;
    /**
     * 所在国家
     */
    private String country;
    /**
     * 头像地址
     */
    private String headimgurl;
    /**
     * 最后一次关注时间
     */
    @TableField("subscribe_time")
    private Date subscribeTime;
    /**
     * 公众号绑定id
     */
    private String unionid;
    /**
     * 备注
     */
    private String remark;
    /**
     * 分组id
     */
    private Integer groupid;
    /**
     * 是否员工
     */
    private Integer isstaff;
    /**
     * 能否审核
     */
    private Integer isaudit;
    /**
     * 能否审核
     */
    private Integer isdelete;
    /**
     * 能否审核
     */
    private String phone;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public Integer getSubscribe() {
        return subscribe;
    }

    public void setSubscribe(Integer subscribe) {
        this.subscribe = subscribe;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    public Date getSubscribeTime() {
        return subscribeTime;
    }

    public void setSubscribeTime(Date subscribeTime) {
        this.subscribeTime = subscribeTime;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getGroupid() {
        return groupid;
    }

    public void setGroupid(Integer groupid) {
        this.groupid = groupid;
    }

    public Integer getIsstaff() {
        return isstaff;
    }

    public void setIsstaff(Integer isstaff) {
        this.isstaff = isstaff;
    }

    public Integer getIsaudit() {
        return isaudit;
    }

    public void setIsaudit(Integer isaudit) {
        this.isaudit = isaudit;
    }

    public Integer getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(Integer isdelete) {
        this.isdelete = isdelete;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Wxuserinfo{" +
        "id=" + id +
        ", openid=" + openid +
        ", subscribe=" + subscribe +
        ", nickname=" + nickname +
        ", sex=" + sex +
        ", language=" + language +
        ", city=" + city +
        ", province=" + province +
        ", country=" + country +
        ", headimgurl=" + headimgurl +
        ", subscribeTime=" + subscribeTime +
        ", unionid=" + unionid +
        ", remark=" + remark +
        ", groupid=" + groupid +
        ", isstaff=" + isstaff +
        ", isaudit=" + isaudit +
        ", isdelete=" + isdelete +
        ", phone=" + phone +
        "}";
    }
}
